<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: HZC
  Date: 2021/6/30
  Time: 14:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<link rel="stylesheet" href="/Eventstar/css/style.css"/>
<body>
<%

  //获取当前时间
  Date d=new Date();
  SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  String now=df.format(d);

%>
<div id="header" class="wrap">
  <div id="logo" style="margin-right: 70px"><img src="/Eventstar/img/logo1.jpg" style="width: 163px" /></div>
  <div class="help"><a href="/Eventstar/homepage.jsp">返回前台页面</a></div>
  <div class="navbar">
    <ul class="clearfix">
      <li><a href="/Eventstar/houtai/index.jsp">首页</a></li>
      <li><a href="/Eventstar/user/find">用户管理</a></li>
      <li><a href="/Eventstar/banji/find">班级管理</a></li>
      <li><a href="/Eventstar/teacher/find">老师管理</a></li>
    </ul>
  </div>
</div>
<div id="childNav">
  <div class="welcome wrap">
    管理员admin您好，今天是<%=now%>，欢迎回到管理后台。
  </div>
</div>
<div id="position" class="wrap">
  您现在的位置：<a href="/Eventstar/homepage.jsp">赛事星</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
  <div id="menu-mng" class="lefter">
    <div class="box">
      <dl>
        <dt>用户管理</dt>
        <dd><em><a href="/Eventstar/houtai/user-add.jsp">新增</a></em><a href="/Eventstar/user/find">用户管理</a></dd>
        <dt>班级管理</dt>
        <dd><em><a href="/Eventstar/houtai/banji-add.jspj">新增</a></em><a href="/Eventstar/banji/find">班级管理</a></dd>
        <dt>老师管理</dt>
        <dd><em><a href="/Eventstar/houtai/laoshixiugai.jsp">新增</a></em><a href="/Eventstar/teacher/find">老师管理</a></dd>
      </dl>
    </div>
  </div>
  <div class="main">
    <h2>修改用户</h2>
    <div class="manage">
      <form action="/Eventstar/teacher/update">
        <table class="form">
          <c:forEach items="${laoshilist}" var="obj">
          <tr>
            <td class="field">老师ID：</td>
            <td><input type="text" class="text"  value="${obj.teacherid}" disabled="disabled" /></td>
          </tr>
          <tr>
            <td class="field">姓名：</td>
            <td><input type="text" class="text" name="name" value="${obj.tname}" /></td>
          </tr>
          <tr>
            <td class="field">密码：</td>
            <td><input type="text" class="text" name="pass" value="${obj.tpass}" /></td>
          </tr>
          <tr>
            <td class="field">电话：</td>
            <td><input type="text" class="text" name="dh" value="${obj.tphone}" /></td>
          </tr>
            <tr>
              <td class="field">职位·：</td>
              <td><input type="text" class="text" name="zw" value="${obj.tjob}" /></td>
            </tr>
          <tr>
            <td></td>
            <td><label class="ui-blue"><button type="submit" name="id" value="${obj.teacherid}">确认更新</button></label></td>
          </tr>
          </c:forEach>
        </table>
      </form>
    </div>
  </div>
  <div class="clear"></div>
</div>
<div id="footer">
  Copyright &copy; 2016 赛事星 All Rights Reserved. 京ICP证1000001号
</div>
</body>
</html>
